package utils;

/**
 * @author duncan
 */
public class KeyListFactory
{
    

    /**
     * Returns a new KeyList with the information
     * given by the parameters.
     */
    public KeyList create(String[] keys, String[] values)
    {
	KeyList result = new KeyList();
	for (int i = 0; i < Math.min(keys.length, values.length); i++)
	{
	    result.addKey(keys[i], values[i]);
	}
	return result;
    }
}
